package com.frogs.ucenter.v1.service;

import com.frogs.system.web.api.request.Request;
import com.frogs.system.web.api.response.Response;
import com.frogs.ucenter.v1.request.IntegralConsumeRecordRequest;

public interface UserIntegralExchangeService {

	/**
	 * 获取兑换优惠券或商品
	 * @param request
	 * @return
	 * @throws Exception 
	 */
	public Response getIntegralExchangeList(Request request) throws Exception;

	/**
	 * 获取用户积分和兑换规则
	 * @param request
	 * @return
	 * @throws Exception 
	 */
	public Response getIntegralConsumeRatio(Request request) throws Exception;

	/**
	 * 清除冻结积分
	 * 
	 * @param request
	 * @return
	 * @throws Exception 
	 */
	public Response releaseBlockingBalance(Request request) throws Exception;
	
	/**
	 * 积分抵制余额回滚
	 * 
	 * @param request
	 * @return
	 * @throws Exception 
	 */
	public Response integralConsumeBack(Request request) throws Exception;

	/**
	 * 解冻积分
	 * 
	 * @param request
	 * @return
	 * @throws Exception 
	 */
	public Response unfreezeIntegralBalance(Request request) throws Exception;

	/**
	 * 冻结积分
	 * 
	 * @param request
	 * @return
	 * @throws Exception 
	 */
	public Response blockingIntegralBalance(Request request) throws Exception;
	
	/**
	 * 积分兑换卡券
	 * 
	 * @param request
	 * @return
	 * @throws Exception 
	 */
	public Response integralExchangeCoupon(Request request) throws Exception;

	/**
	 * 积分兑换激活码
	 * 
	 * @param request
	 * @return
	 * @throws Exception 
	 */
	public Response integralExchangeCDkey(Request request) throws Exception;

	//根据订单号获取订单详情
	Response getIntegralConsumeByOrderSn(Request request) throws Exception;
}
